//========encoding:utf-8=========
/*
 * @describe:  三目运算符
 * @author:mhao
 * @copyright:chinasoft.cn
 * @date:2020年3月30日   下午3:14:17
 */
package edu.chinasoft.domain;


import java.util.Date;
import java.util.List;


public class Application {
	 private int applicationId;
	    private String applicationContent;
	    private Date applicationBegin;
	    private Date applicationEnd;
	    private String applicationState;
	    private Date operationTime;
	    //申请者
	    private User applicationUser;
	    //审批表
	    private List<Approval> approvalList;
	    private Approval tApproval;
	    //审批者
	    private User approvalUser;

	    public Application() {
	    }

		public Application(String applicationContent, Date applicationBegin, Date applicationEnd, Date operationTime) {
			super();
			this.applicationContent = applicationContent;
			this.applicationBegin = applicationBegin;
			this.applicationEnd = applicationEnd;
			this.operationTime = operationTime;
		}

		public int getApplicationId() {
			return applicationId;
		}

		public void setApplicationId(int applicationId) {
			this.applicationId = applicationId;
		}

		public String getApplicationContent() {
			return applicationContent;
		}

		public void setApplicationContent(String applicationContent) {
			this.applicationContent = applicationContent;
		}

		public Date getApplicationBegin() {
			return applicationBegin;
		}

		public void setApplicationBegin(Date applicationBegin) {
			this.applicationBegin = applicationBegin;
		}

		public Date getApplicationEnd() {
			return applicationEnd;
		}

		public void setApplicationEnd(Date applicationEnd) {
			this.applicationEnd = applicationEnd;
		}

		public String getApplicationState() {
			return applicationState;
		}

		public void setApplicationState(String applicationState) {
			this.applicationState = applicationState;
		}

		public Date getOperationTime() {
			return operationTime;
		}

		public void setOperationTime(Date operationTime) {
			this.operationTime = operationTime;
		}

		public User getApplicationUser() {
			return applicationUser;
		}

		public void setApplicationUser(User applicationUser) {
			this.applicationUser = applicationUser;
		}

		public List<Approval> getApprovalList() {
			return approvalList;
		}

		public void setApprovalList(List<Approval> approvalList) {
			this.approvalList = approvalList;
		}

		public Approval gettApproval() {
			return tApproval;
		}

		public void settApproval(Approval tApproval) {
			this.tApproval = tApproval;
		}

		public User getApprovalUser() {
			return approvalUser;
		}

		public void setApprovalUser(User approvalUser) {
			this.approvalUser = approvalUser;
		}

		@Override
		public String toString() {
			return "Application [applicationId=" + applicationId + ", applicationContent=" + applicationContent
					+ ", applicationBegin=" + applicationBegin + ", applicationEnd=" + applicationEnd
					+ ", applicationState=" + applicationState + ", operationTime=" + operationTime + "]";
		}
	    
}
